<?php
namespace Admin\Controller;
use Think\Controller;

/**
 * 基础类，用于判定用户是否登录
 * @author wf
 *
 */
class BaseController extends Controller {
	protected function _initialize(){
	  if($_SESSION['admin']==NULL)
        {
        	redirect(U('public/login'));
        }
	}
}